using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN QuocGiaService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: QuocGiaService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class QuocGiaService : IQuocGiaService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: QuocGia_ID</para>
		/// <para>Output: QuocGiaEntity</para>
		///</summary>
		public QuocGiaEntity SelectOne(int QuocGia_ID){
			QuocGiaDAO dao = new QuocGiaDAO();
			return dao.SelectOne(QuocGia_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOneByMaQuocGia</para>
		/// <para>Input: MaQuocGia</para>
		/// <para>Output: QuocGiaEntity</para>
		///</summary>
		public QuocGiaEntity SelectOneByMaQuocGia(string MaQuocGia){
			QuocGiaDAO dao = new QuocGiaDAO();
			return dao.SelectOneByMaQuocGia(MaQuocGia);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of QuocGiaEntity</para>
		///</summary>
		public List<QuocGiaEntity> SelectAll(){
			QuocGiaDAO dao = new QuocGiaDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			QuocGiaDAO dao = new QuocGiaDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of QuocGiaEntity</para>
		///</summary>
		public List<QuocGiaEntity> SelectAllFilter(string strFilter){
			QuocGiaDAO dao = new QuocGiaDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			QuocGiaDAO dao = new QuocGiaDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: QuocGiaEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(QuocGiaEntity o){
			QuocGiaDAO dao = new QuocGiaDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: QuocGiaEntity</para>
		/// <para>Output: QuocGiaEntity</para>
		///</summary>
		public QuocGiaEntity SaveRet(QuocGiaEntity o){
			QuocGiaDAO dao = new QuocGiaDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of QuocGiaEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<QuocGiaEntity> list){
			QuocGiaDAO dao = new QuocGiaDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of QuocGiaEntity</para>
		/// <para>Output: List of QuocGiaEntity</para>
		///</summary>
		public List<QuocGiaEntity> SaveListRet(List<QuocGiaEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: QuocGiaEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(QuocGiaEntity o){
			QuocGiaDAO dao = new QuocGiaDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of QuocGiaEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<QuocGiaEntity> list){
			QuocGiaDAO dao = new QuocGiaDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMaQuocGia</para>
		/// <para>Input: NewMaQuocGia,QuocGia_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMaQuocGia(string NewMaQuocGia,int QuocGia_ID){
			QuocGiaDAO dao = new QuocGiaDAO();
			return dao.UpdateMaQuocGia(NewMaQuocGia,QuocGia_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateTenQuocGia</para>
		/// <para>Input: NewTenQuocGia,QuocGia_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenQuocGia(string NewTenQuocGia,int QuocGia_ID){
			QuocGiaDAO dao = new QuocGiaDAO();
			return dao.UpdateTenQuocGia(NewTenQuocGia,QuocGia_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMoTaQuocGia</para>
		/// <para>Input: NewMoTaQuocGia,QuocGia_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMoTaQuocGia(string NewMoTaQuocGia,int QuocGia_ID){
			QuocGiaDAO dao = new QuocGiaDAO();
			return dao.UpdateMoTaQuocGia(NewMoTaQuocGia,QuocGia_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: QuocGiaEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(QuocGiaEntity o){
			QuocGiaDAO dao = new QuocGiaDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: QuocGia_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int QuocGia_ID){
			QuocGiaDAO dao = new QuocGiaDAO();
			return dao.DeleteByID(QuocGia_ID);
		}
		#endregion

		#region Select,delete by QuocGia_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END QuocGiaWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

